package com.command.pattern.service.impl;

import com.command.pattern.service.Order;
import com.command.pattern.service.Stock;

/**
 * @author chenchen
 * @description
 * @date 2023/11/20 10:51
 */
public class BuyStock implements Order {

    private Stock abcStock;

    public BuyStock(Stock abcStock){
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }
}
